package com.spring.mongo.model;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.Field;

public class User {

	private String id;
	private String name;
	private String mobile;
//	@Field(value="user_address")
	private String user_address;

	private List<Address> address;

	public User() {
		super();
	}

	public User(String name, String mobile) {
		super();
		this.name = name;
		this.mobile = mobile;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public List<Address> getAddress() {
		return address;
	}

	public void setAddress(List<Address> address) {
		this.address = address;
	}

	public String getUser_address() {
		return user_address;
	}

	public void setUser_address(String user_address) {
		this.user_address = user_address;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", mobile=" + mobile + ", address=" + address + "]";
	}
}
